package cn.itsource.smartcampus.domain;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

/**
 * 
 * @TableName t_teacher
 */
@Data
public class Teacher implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 姓名
     */
    @Excel(name = "姓名", width = 20)
    private String name;

    /**
     * 年龄
     */
    @Excel(name = "年龄", width = 20)
    private Integer age;

    /**
     * 性别
     */
    @Excel(name = "性别", width = 20, replace = {"男_1","女_0"})
    private Boolean sex;

    /**
     * 职位
     */
    @Excel(name = "职位", width = 40)
    private String position;

    /**
     * 学科
     */
    @Excel(name = "学科", width = 30)
    private String subject;


    public Teacher() {
    }

    public Teacher(Long id) {
        this.id = id;
    }

    public Teacher(String name, Integer age, Boolean sex, String position, String subject) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.position = position;
        this.subject = subject;
    }

    public Teacher(Long id, String name, Integer age, Boolean sex, String position, String subject) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.position = position;
        this.subject = subject;
    }
}